package com.yxx.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: YuXinXin
 * @Description: JSON实体
 * @Date:Created in 10:22 2020/8/13
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataGridView {
  private Integer code=0;
  private String msg="";
  private Object data;
  private Long count=0l;

  //用于分页
  public DataGridView(Long count, Object data) {
    this.count = count;
    this.data = data;
  }
  public DataGridView(Object data) {
    this.data = data;
  }

  public DataGridView(Integer code,Object data) {
    this.code = code;
    this.data = data;
  }

  public DataGridView(Integer code,String msg,Object data) {
    this.code = code;
    this.msg = msg;
    this.data = data;
  }
}
